/**
 * 登出
 */
#include "../myfastdo/myfastdo.hpp"
#include "../utils.hpp"
USING_ALL;
FASTDO_API void ActionMain(MyFastdoServer &SERV)
{
    User user(SERV.data.REQ);
    if( !user.isLogged() ){
        throw RequestError("NOT_LOGGED");
    }
    user.logout();
}